<?php

class Core_Model_DbTable_Layouts extends Nuo_Db_Table
{
	/**
	 * @var string
	 */
	protected $_name = 'core_layouts';

	/**
	 * @var string
	 */
	protected $_rowClass = 'Core_Model_Layout';

	/**
	 * @return array
	 */
	public function getAsOptions()
	{
		$select = $this -> select() -> order('layout_side ASC')->order('layout_title ASC');

		foreach ($this->fetchAll($select) as $row)
		{
			$result[$row -> getId()] = $row -> getTitle();
		}
		return $result;
	}

}
